package com.mls.fivedistrict.util;

/**
 * 验证码生成
 * Created by chenxiuxiang on 2018/3/16.
 */
public class CaptchaUtil {

    /**
     * 生成验证码
     * @return
     */
    public static String getCaptcha() {
        double captcha = (double)Math.random()*9000+1000;
        return String.valueOf((int) Math.ceil(captcha));
    }
}
